//
//  BaseViewController.m
//  WeChat
//
//  Created by zhengwenming on 16/6/4.
//  Copyright © 2016年 zhengwenming. All rights reserved.
//

#import "MSBaseVC.h"

@interface MSBaseVC ()

@end

@implementation MSBaseVC

- (UILabel *)viewTitle {
    if (!_viewTitle) {
        _viewTitle = [[UILabel alloc] init];
        _viewTitle.frame = CGRectMake(0, 0, 160, 44);
        _viewTitle.font = [UIFont boldSystemFontOfSize:18.];
        _viewTitle.textColor = tThreeColor;
        _viewTitle.textAlignment = NSTextAlignmentCenter;
    }
    return _viewTitle;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.translucent = NO;
    self.navigationController.navigationBar.barStyle = UIStatusBarStyleLightContent;
    
    self.view.backgroundColor = tMainColor;
    self.navigationItem.titleView = self.viewTitle;
}

- (UIStatusBarStyle)preferredStatusBarStyle{
    return UIStatusBarStyleDefault;
}

@end
